// 联合枚举类型
enum Animals {
    Dog = 1,
    Cat = 3,
}

interface Pet {
    type: Animals
}

const myPet: Pet = {
    type: Animals.Cat,
}

// animals就相当于一个对象
const enum Animals1 {
    Dog = 1,
    Cat = 3,
}

export {};